<!--
 * @Description: 
 * @Author: kangjie
 * @Date: 2021-09-17 13:31:18
 * @LastEditors: kanjie
 * @LastEditTime: 2021-09-17 20:46:01
-->
<template>
  <div>
    <!-- 底部 -->
    <div class="footer">
      <div class="address">
       {{address}}
      </div>
      <div class="copyright">版权所有：山西农业大学 晋ICP备05000473号 晋公网安备14072602000114号</div>
    </div>
    <!-- /底部 -->
  </div>
</template>
<script>
import {get} from '../utils/request'
export default {
    data(){
        return {
            address:""
        }
    },
    methods:{
        loadAddress(){
            let url='/index/findByKey';
            get(url,{name:'address'}).then(res=>{
                let data=res.data;
                if(data){
                    this.address=data.val;
                }
            })
        }
    },
    created(){
        this.loadAddress()
    }
}
</script>
<style lang="scss">
// 底部样式
.footer {
  text-align: center;
  
}
</style>